package com.lan.workflow.common;

/**
 * Created by admin on 2020/6/3.
 */
public enum ResponseCodeEnum {

    SUCCESS("200", "成功！"),
    BODY_NOT_MATCH("400","请求的数据格式不符！"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配！"),
    NOT_FOUND("404", "未找到该资源！"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误！"),
    SERVER_BUSY("503","服务器正忙，请稍后再试！"),
    BUSINESS_ERROR("499","业务异常！");

    private String key;
    private String value;

    private ResponseCodeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
